<div class="row">
    <div class="col-xs-12">
        <div class="panel panel-midnightblue">
            <div class="panel-heading"><h4>账号修改</h4></div>
            <div class="panel-body">
                <form action="" class="form-horizontal row-border"  data-validate="parsley" id="validate-form">
                    <input type="hidden" name="id" value="{$user.id}">
                    <div class="form-group">
                        <label class="col-sm-3 control-label" for="group_id">分组:</label>
                        <div class="col-sm-6">
                            <select class="form-control" name="group_id" id="group_id">
                                <option value=''>选择分组</option>
                                {foreach name="groups" item="v"}
                                <option value="{$v.id}" {eq name="v.id" value="$user.group_id"}selected{/eq}>{$v.name}</option>
                                {/foreach}
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label" for="name">昵称:</label>
                        <div class="col-sm-6">
                            <input type="text" name="name" id="name" required="required" placeholder="昵称" class="form-control" value="{$user.name}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label" for="name">账号:</label>
                        <div class="col-sm-6">
                            <input type="text" name="account" id="account" required="required" placeholder="账号" class="form-control" value="{$user.account}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label" for="password">密码:</label>
                        <div class="col-sm-6">
                            <input type="text" name="password" id="password" placeholder="密码(不修改留空)" class="form-control" value="">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label" for="mobile">手机:</label>
                        <div class="col-sm-6">
                            <input type="text" name="mobile" id="mobile" required="required" placeholder="手机" class="form-control" value="{$user.mobile}">
                        </div>
                    </div>
                </form>
            </div>
            <div class="panel-footer">
                <div class="row">
                    <div class="col-sm-6 col-sm-offset-3">
                        <div class="btn-toolbar">
                            <button class="btn-primary btn" id="form-submit">提交</button>
                            <button class="btn-default btn" data-dismiss="modal">关闭</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script type='text/javascript' src='{$Think.OPERATION_VIEW_JS}admin/userEdit.js'></script>